package com.eyas.business.service.RecordInfo;

import com.eyas.business.model.jdbcEntity.table.RecordInfo;
import com.eyas.business.model.pojo.recordinfo.PageQueryResult;
import com.eyas.business.model.pojo.recordinfo.QueryParamDTO;
import com.eyas.core.model.page.PageResult;

import java.util.Date;
import java.util.List;

/**
 * @Auther: 王龙龙
 * @Date: 2019/3/11 18:43
 * @Description:
 */
public interface RecordInfoService {
    /**
     * 查询所有课程信息
     * @param queryParamDTO
     * @param page
     * @param limit
     * @return
     */
    public PageResult<PageQueryResult> queryRecordInfoForPage(QueryParamDTO queryParamDTO, int page, int limit);

    /**
     * 获取月份里面所有课程的日期数据
     * @param year
     * @param month
     * @return
     */
    public List<PageQueryResult> queryDistinctStartTime(Integer year, Integer month);

    public PageQueryResult getRecordInfoById(Integer recordid);

    /**
     * save or update开班信息
     * @param recordInfo
     */
    public void saveRecordInfo(QueryParamDTO recordInfo);

    /**
     * 约课页面查询列表
     * @param queryParamDTO
     * @param page
     * @param limit
     * @return
     */
    public PageResult<PageQueryResult> queryRecordInfoForYK(QueryParamDTO queryParamDTO, int page, int limit);

    List<PageQueryResult> queryRecordInfoForList(Integer classid,Date selectDate);
}
